﻿CREATE TRIGGER LoanIntstallmentWarnings_Tracking_Delete
ON [dbo].[LoanIntstallmentWarnings] 
AFTER delete
AS 
BEGIN
	UPDATE Sync.LoanIntstallmentWarnings_Tracking 
	SET LastUpdatedDate  = getdate(),
		IsDeleted = 1
	FROM Sync.LoanIntstallmentWarnings_Tracking s JOIN DELETED i
    ON s.LoanIntstallmentWarningID = i.LoanIntstallmentWarningID
END











